<?php
$pageTitle = '分类列表';
include 'header.tpl.php'; ?>
<table>
  <tr>
    <th>ID</th>
    <th>名称</th>
    <th>操作</th>
  </tr>
  <?php foreach ($catalogList as $catalog):?>
  <tr>
    <td><?php echo $catalog['id'];?></td>
    <td><?php echo str_repeat('&nbsp;&nbsp;', $catalog['level']-1) . $catalog['name'];?></td>
    <td><a href="<?php echo $short_router?>del?cid=<?php echo $catalog['id'];?>">删除</a>, <a href="<?php echo $short_router?>edit?cid=<?php echo $catalog['id'];?>">修改</a></td>
  </tr>
  <?php endforeach;?>
</table>



<?php include 'footer.tpl.php';?>